package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.ConstructionDao;
import com.site.wisdom_construction.entity.personnelModule.Construction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/4
 * @Description
 */
@Service
public class ConstructionService implements ConstructionDao {
    @Autowired
    private ConstructionDao constructionDao;

    @Override
    public int insertConstruction(Map map) {
        return constructionDao.insertConstruction(map);
    }

    @Override
    public int deleteConstruction(Map map) {
        return constructionDao.deleteConstruction(map);
    }

    @Override
    public int updateConstruction(Map map) {
        return constructionDao.updateConstruction(map);
    }

    @Override
    public List<Construction> findConstructionByPage(Map map) {
        return constructionDao.findConstructionByPage(map);
    }

    @Override
    public long Total(Map map) {
        return constructionDao.Total(map);
    }

    @Override
    public List<Construction> selectConstruction(Map map) {
        return constructionDao.selectConstruction(map);
    }

    @Override
    public List<Construction> findConstructionByName(Map map) {
        return constructionDao.findConstructionByName(map);
    }
}
